import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

import 'virtual:svg-icons-register'

// 引入全局组件
import gloablComponent from './components/index.ts'

// 引入模版的全局样式
import '@/styles/index.scss'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(ElementPlus)
app.mount('#app')

app.use(gloablComponent)
